{%include file="m.index.header.tpl.php"%}<!--头部 end-->
<!--主体部分-->
<div class="container" style="margin-top:70px;margin-left:2%;margin-right:2%">
	<div class="row">
		<div class="col-xs-6 text-center hudong"><a href="index.php?a=notice.myfamily">互动列表</a></div>
		<div class="col-xs-6 text-center fabiao"><a href="index.php?a=notice.familylist">发表</a></div>
	</div>
	<!--row  end-->

	<div class="row" >
		<table class="table" id="hudong_box" >
			{%foreach from=$notice_lists item=value%}
			<tbody>
			<tr>
				<td class="text-right right_table">{%if $uid eq $value.user_id%}班主任{%elseif $user_id eq $value.user_id%}我{%else%}学校{%/if%}</td>
				<td class="right_table_time">{%$value.create_time%}</td>
			</tr>
			<tr>
				<td style="border-right:1px solid #ccc"></td>
				<td><div class="well">{%$value.notice_content%}</div>
					<p class="text-right">
						<button type="button" class="btn btn-warning" data-toggle="modal" data-target="#myModal"> <span class="glyphicon glyphicon-pencil"></span> 回 复 </button>
						<!-- Modal -->

					<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
						<div class="modal-dialog">
							<div class="modal-content">
								<div class="modal-header">
									<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
									<h4 class="modal-title" id="myModalLabel">回复信息</h4>
								</div>
								<form action="" method="post">
								<div class="modal-body">
									<textarea  name="notice_contents" class="form-control" rows="3"></textarea>
								</div>
								<div class="modal-footer">
									<input type="hidden" name="notice_id" value="{%$value.notice_id%}">
									<button type="submit" class="btn btn-primary">保存</button>
								</div>
								</form>
							</div>
						</div>
					</div>
					</p></td>
			</tr>
			</tbody>
			{%/foreach%}


		</table>
	</div>
	<!--hudong_box  end-->

</div>
<!--container  end-->
<!--主体部分  end-->
<!--底部-->
{%include file="m.index.footer.tpl.php"%}
<!--container  end-->

<!--底部end-->
<script src="mstatic/js/jquery.min.js" type="text/javascript"></script>
<script src="mstatic/js/bootstrap.min.js"  type="text/javascript"></script>
<script src="mstatic/js/jquery-ui.js"  type="text/javascript"></script><!--日历-->

<!--日历-->
<script>
	$(function() {
		$( "#datepicker" ).datepicker({
			minDate: new Date(1953, 11, 31),
			maxDate: new Date(2015, 11, 31),
			changeMonth: true,
			changeYear: true

		});

		$( "#datepicker2" ).datepicker({
			minDate: new Date(1953, 11, 31),
			maxDate: new Date(2015, 11, 31),
			changeMonth: true,
			changeYear: true

		});
	});
</script>
</body>
</html>
